home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Digitalfoto 118
/
Digitalfoto 118.iso
/
mac
/
programas
/
00
/
start.swf
/
scripts
/
frame_28
/
DoAction.as
< prev
Wrap
Text File
|
2009-11-16
|
5KB
|
176 lines
function setHtmlFullscreen()
{
if(html_fullscreen)
{
Stage.displayState = "normal";
html_fullscreen = false;
}
else
{
Stage.displayState = "fullScreen";
html_fullscreen = true;
}
}
function activateHtmlFsbtn()
{
html_fs_btn.onRollOver = function()
{
this.btn_rollover_mc._alpha = 100;
if(html_fullscreen)
{
_root.toolTip(_root.tooltip_fullscreen_off,this,"right",30,-66,"top2");
}
else
{
_root.toolTip(_root.tooltip_fullscreen_on,this,"right",30,-66,"top2");
}
};
html_fs_btn.onRollOut = html_fs_btn.onReleaseOutside = html_fs_btn.onDragOut = function()
{
_root.killToolTip();
this.btn_rollover_mc._alpha = 0;
};
html_fs_btn.onRelease = function()
{
_root.killToolTip();
setHtmlFullscreen();
};
var _loc4_ = new Color(html_fs_btn.symbol);
_loc4_.setRGB(_root.parseColor(_root.btn_text_color));
html_fs_btn.btn_rollover_mc._alpha = 0;
var _loc3_ = new Color(html_fs_btn.btn_rollover_mc);
_loc3_.setRGB(_root.parseColor(_root.btn_rollover_color));
html_fs_btn._x = Stage.width - 26;
html_fs_btn._y = 2;
html_fs_btn._visible = true;
}
function dragmcPress()
{
clickx = _root._xmouse;
if(client_os == "Mac")
{
clicky = _root._ymouse + 23;
}
else
{
clicky = _root._ymouse;
}
onMouseMove = dragger;
}
function dragmcRelease()
{
onMouseMove = undefined;
_quality = __quality;
if(!live_mode)
{
if(this.doubleClick() == true)
{
clearInterval(singleclick_delay);
maximizeApplication();
}
}
}
function dragger()
{
if(!maximized or live_mode)
{
_quality = "LOW";
var _loc1_ = mdm.Input.Mouse.getPosition();
var _loc3_ = _loc1_[0];
var _loc2_ = _loc1_[1];
mdm.Forms.MainForm.x = _loc3_ - clickx;
mdm.Forms.MainForm.y = _loc2_ - clicky;
}
}
function sizeRollover()
{
Mouse.hide();
size_mc.mouse_icon_mc._visible = true;
}
function sizeRollout()
{
Mouse.show();
size_mc.mouse_icon_mc._visible = false;
}
function sizemcPress()
{
block_pos_listener = true;
sclickx = _root._xmouse;
sclicky = _root._ymouse;
var _loc2_ = mdm.Input.Mouse.getPosition();
dx = _loc2_[0] - mdm.Forms.MainForm.width - mdm.Forms.MainForm.x;
dy = _loc2_[1] - mdm.Forms.MainForm.height - mdm.Forms.MainForm.y;
onMouseMove = sizer;
_quality = "LOW";
}
function sizemcRelease()
{
block_pos_listener = false;
setPos();
onMouseMove = undefined;
_quality = __quality;
}
function sizer()
{
var _loc1_ = mdm.Input.Mouse.getPosition();
var _loc3_ = _loc1_[0];
var _loc2_ = _loc1_[1];
sizer_form_width = _loc3_ - mdm.Forms.MainForm.x - dx;
sizer_form_height = _loc2_ - mdm.Forms.MainForm.y - dy;
if(sizer_form_width < 500)
{
sizer_form_width = 500;
}
if(sizer_form_height < 50)
{
sizer_form_height = 50;
}
mdm.Forms.MainForm.width = Math.round(sizer_form_width);
mdm.Forms.MainForm.height = Math.round(sizer_form_height);
saved_premaximize_width = mdm.Forms.MainForm.width;
saved_premaximize_height = mdm.Forms.MainForm.height;
}
html_fs_btn._visible = false;
if(_root.useFSP_path == "true")
{
html_fs_btn._visible = false;
}
else
{
html_fs_btn._visible = true;
application_border_mc._visible = false;
dragbar_mc._visible = false;
tools_mc._visible = false;
size_mc._visible = false;
application_title_op._visible = false;
}
application_border_mc._x = 0;
application_border_mc._y = 0;
application_border_mc._width = Stage.width - 1;
application_border_mc._height = Stage.height - 1;
dragbar_mc._width = Stage.width;
dragbar_mc.useHandCursor = false;
tools_mc._x = Stage.width - 53;
tools_mc.minimize_mc.onRelease = function()
{
minimizeApplication();
};
tools_mc.maximize_mc.onRelease = function()
{
maximizeApplication();
};
tools_mc.quit_mc.onRelease = function()
{
renderExit();
};
var clickx;
var clicky;
dragbar_mc.onPress = mx.utils.Delegate.create(this,dragmcPress);
dragbar_mc.onReleaseOutside = dragbar_mc.onRelease = mx.utils.Delegate.create(this,dragmcRelease);
var sclickx;
var sclicky;
size_mc.onPress = mx.utils.Delegate.create(this,sizemcPress);
size_mc.onReleaseOutside = size_mc.onRelease = mx.utils.Delegate.create(this,sizemcRelease);
var dx = 0;
var dy = 0;